package com.qa.dom.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 关注表
 * </p>
 *
 * @author cxj
 * @since 2018-04-24
 */
public class Notice extends Model<Notice> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 关注者id
     */
	private Integer noticer;
    /**
     * 被关注者
     */
	private Integer bynoticer;
    /**
     * 关注时间
     */
	@TableField("create_date")
	private Date createDate;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getNoticer() {
		return noticer;
	}

	public void setNoticer(Integer noticer) {
		this.noticer = noticer;
	}

	public Integer getBynoticer() {
		return bynoticer;
	}

	public void setBynoticer(Integer bynoticer) {
		this.bynoticer = bynoticer;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Notice{" +
			", id=" + id +
			", noticer=" + noticer +
			", bynoticer=" + bynoticer +
			", createDate=" + createDate +
			"}";
	}
}
